In [10]:
def gensquares(N):
pass
In [11]:
for x in gensquares(10):
print x
In [6]:
import random
random.randint(1,10)
Out[6]:
In [7]:
def rand_num(low,high,n):
pass
In [9]:
for num in rand_num(1,10,12):
print num
In [1]:
s = 'hello'
#code here
In [18]:
my_list = [1,2,3,4,5]
gencomp = (item for item in my_list if item > 3)
for item in gencomp:
print item